//
//  LJFCountryModel.m
//  SevenZhou
//
//  Created by qianfeng on 15/9/15.
//  Copyright (c) 2015年 ljf. All rights reserved.
//

#import "LJFCountryModel.h"
#import "LJFCityModel.h"

@implementation LJFCountryModel

- (instancetype)initWithDictionary:(NSDictionary *)dict
{
    if (self = [super init])
    {
        _children = dict[@"children"];
        _en_name = dict[@"en_name"];
        _Myid = dict[@"id"];
        _name = dict[@"name"];
        
        NSMutableArray *arrM = [[NSMutableArray alloc] init];
        
        for (NSDictionary *dic in _children)
        {
            LJFCityModel *model = [[LJFCityModel alloc] initWithDictionary:dic];
            
            [arrM addObject:model];
        }
        
        _children = [NSArray arrayWithArray:arrM];
    }
    
    return self;
}

@end
